<template>
  <div>
    <h3>{{ $store.state.user.num }}</h3>
    <van-button @click="btnClick">点击</van-button>
  </div>
</template>
<script>
export default {
  methods: {
    btnClick () {
      this.$store.commit('user/setNum', this.$store.state.user.num + 1)
    }
  }
}
</script>
<style></style>
>
